package com.xdf.xzymanagementsystem.dao;

import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

import com.xdf.xzymanagementsystem.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import com.xdf.xzymanagementsystem.util.Example;

/**
 * @Description : 登录用户表
 * @Author : 张柯
 * @Date : 2020-12-31 14:42:38
 */
@Repository
public interface SysUserMapper {
    int insert(SysUser record);

    int insertSelective(SysUser record);

    int multiInsert(List<SysUser> list);

    int insertDumplicateKeyUpdate(SysUser record);

    int updateByPrimaryKey(SysUser record);

    int updateByPrimaryKeySelective(SysUser record);

    int multiUpdate(List<SysUser> list);

    int deleteByPrimaryKey(Integer id);

    SysUser selectByPrimaryKey(Integer id);

    List<SysUser> selectAll();

    List<SysUser> selectByParam(SysUser record);

    int updateByExampleSelective(@Param("record") SysUser record, @Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<SysUser> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") SysUser record, @Param("example") Example example);

    long countByExample(@Param("example") Example example);

    List<SysUser> getUsers8Role(Integer roleId);

}